package studentmanager;

import java.util.Scanner;

public class StudentManager {
	static Scanner sc;

	void displayMenu() {
		System.out.println("MENU SINH VIEN");
		System.out.println("---------------------");
		System.out.println("1. Nhap Sinh vien");
		System.out.println("2. Nhap diem");
		System.out.println("3. Hien thi thong tin");
		System.out.println("4. Diem trung binh");
		System.out.println("5. Thoat");
		System.out.println("---------------------");
	}

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		Student st = new Student();
		StudentManager sm = new StudentManager();
		while (true) {
			sm.displayMenu();
			int ch = 0;
			ch = sc.nextInt();
			switch (ch) {
			case 1:
				st.newStudent();
				break;
			case 2:
				st.addMarkForStudent();
				break;
			case 3:
				st.displayStudent();
				break;
			case 4:
				st.displayAvgMark();
				break;
			case 5:
				System.exit(0);
			}
		}
	}

}
